import request from '@/utils/request'

/**
 * 获取文件列表
 * @param id
 * @returns {AxiosPromise}
 */
export function getFolder(id) {
    return request({
        url: '/recycle/getFolder/' + id,
        method: 'get'
    })
}

/**
 * 移动到备份盘
 * @param id
 * @returns {AxiosPromise}
 */
export function removetobfp(id) {
    return request({
        url: '/recycle/removeFolderTobfp',
        method: 'post',
        params:{
            id: id
        }
    })
}
/**
 * 移动到资源库
 * @param id
 * @returns {AxiosPromise}
 */
export function removetozyk(id) {
    return request({
        url: '/recycle/removeFolderTozyk',
        method: 'post',
        params:{
            id: id
        }
    })
}

/**
 * 删除
 * @param id
 * @returns {AxiosPromise}
 */
export function deleteByid(id){
    return request({
        url: '/recycle/delete',
        method: 'post',
        params:{
            id: id,
        }
    })
}
